package tech.horgee.schedule;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.Duration;

@Getter
@Setter
@ToString
public class TaskItem {
    //类名
    private String name;
    //执行周期
    private String cron = "0 0 0 * * ?";
    //开关
    private boolean enabled = true;
    //备注
    private String remark;
    //分布式锁等待时间
    private Duration waitTime = Duration.ofSeconds(1);
    //分布式锁释放时间
    private Duration leaseTime = Duration.ofMinutes(3);
}
